package cn.argentoaskia.crm.result;

// 涉及到返回值的，都需要你把文档定义的返回数据字段名和ResponseData类的属性名一致
// ！！！属性名，必须跟我文档定义的返回数据字段名一样。
public class ResponseData {
    private Integer code;
    private String info;
    // java Object类是所有类的父类，包括JVM生成的类，比如数组String[] [Ljava.lang.String
    private Object data;
    private Integer count;

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("ResponseData{");
        sb.append("code=").append(code);
        sb.append(", info='").append(info).append('\'');
        sb.append(", data=").append(data);
        sb.append(", count=").append(count);
        sb.append('}');
        return sb.toString();
    }

    public Integer getCode() {
        return code;
    }

    public ResponseData setCode(Integer code) {
        this.code = code;
        return this;
    }

    public String getInfo() {
        return info;
    }

    public ResponseData setInfo(String info) {
        this.info = info;
        return this;
    }

    public Object getData() {
        return data;
    }

    public ResponseData setData(Object data) {
        this.data = data;
        return this;
    }

    public Integer getCount() {
        return count;
    }

    public ResponseData setCount(Integer count) {
        this.count = count;
        return this;
    }
}
